package cn.crc.web.tool;

import java.util.ArrayList;
import java.util.List;

public class TestVipVo {
    private String orgName;
    private Integer orgTime;//成立时间
    private TestUserVo bossInfo;//机构领导
    private List<TestUserVo> userList;//员工

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getOrgTime() {
        return orgTime;
    }

    public void setOrgTime(Integer orgTime) {
        this.orgTime = orgTime;
    }

    public TestUserVo getBossInfo() {
        return bossInfo;
    }

    public void setBossInfo(TestUserVo bossInfo) {
        this.bossInfo = bossInfo;
    }

    public List<TestUserVo> getUserList() {
        return userList;
    }

    public void setUserList(List<TestUserVo> userList) {
        this.userList = userList;
    }

    @Override
    public String toString() {
        return "TestVipVo{" +
                "orgName='" + orgName + '\'' +
                ", orgTime=" + orgTime +
                ", bossInfo=" + bossInfo +
                ", userList=" + userList +
                '}';
    }

    public static TestVipVo getVipTest(){
        TestUserVo userVo= new TestUserVo();
        userVo.setUsername("高处长");
        userVo.setTelephone("010-56780088");

        TestVipVo vipVo= new TestVipVo();
        vipVo.setOrgName("北京红太阳科技公司");
        vipVo.setOrgTime(20010912);
        vipVo.setBossInfo(userVo);
        vipVo.setUserList(TestVipVo.getUserTest());
        return vipVo;
    }
    public static List<TestUserVo> getUserTest(){
        List list= new ArrayList();
        TestUserVo userVo= new TestUserVo();
        userVo.setUsername("张三");
        userVo.setTelephone("13022338899");
        list.add(userVo);
        userVo= new TestUserVo();
        userVo.setUsername("李四");
        userVo.setTelephone("18255667788");
        list.add(userVo);
        return list;
    }
}
